﻿@model List<SuperiorModel.ProductModel>
@{
    Layout = null;
    var HasProductIdList = ViewBag.HasProductIdList;
}
<link href="~/layui/css/layui.css" rel="stylesheet" />

<link href="~/Content/extend.css" rel="stylesheet" />

<script src="~/scripts/jquery-1.10.2.js"></script>
<script src="~/scripts/Common/Base.js"></script>
<script src="~/scripts/Common/RequestManager.js"></script>
<script src="~/scripts/Common/ToolManager.js"></script>
<script src="~/scripts/layer/layer.js"></script>
<script src="~/layui/layui.js"></script>
<div class="shopmain">
    <div class="shopbody">
        <div class="layui-form">
            
            <div class="layui-form-item layui-form-text" id="dataList">
                <table class="layui-table" id="AppList" lay-filter="test">
                    <thead>
                        <tr>
                            <th><input type="checkbox" lay-filter="check_all" name="check_all" title="" lay-skin="primary"></th>
                            <th>商品编号</th>
                            <th>商品名称</th>
                            <th>商城图片</th>
                            <th>商品分类</th>
                            <th>创建时间</th>
                            
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model)
                        {
                            <tr>
                                <td>
                                @if (ViewBagManager.IsCheck(SuperiorCommon.SecretClass.DecryptQueryString(item.Id), HasProductIdList))
                                {
                                    <input type="checkbox" value="@SuperiorCommon.SecretClass.DecryptQueryString(item.Id)" name="check_product" title="" lay-filter="check_product"  lay-skin="primary" checked>
                                }
                                else
                                {
                                    <input type="checkbox" value="@SuperiorCommon.SecretClass.DecryptQueryString(item.Id)" name="check_product" title="" lay-filter="check_product" lay-skin="primary">
                                }

                                </td>
                                <td>@item.Id</td>
                                <td>@(item.ProductName)</td>
                                <td><img id="img_@SuperiorCommon.SecretClass.DecryptQueryString(item.Id)" src="@item.ProductImg" style="width:50px;height:50px;" /> </td>
                                <td>@item.MenuName</td>
                                <td>@item.CreateTime</td>
                              
                            </tr>
                        }
                    </tbody>
                </table>
            
            </div>
            
        </div>
    </div>
</div>
<script src="~/scripts/Marketing/CurrentProducts.js"></script>
<script>
    CurrentProductsClass.Instance.Init();

</script>

